
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>小滴课堂开发者论坛</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/static/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/static/bootstrap.min.js">
    </script>
    <script src="${pageContext.request.contextPath}/static/jquery.min.js">
    </script>
</head>
<body>
<div class="container">
    <ul class="nav nav-tabs">
        <c:forEach items="${categoryList}" var="category">
        <li><a href="${pageContext.request.contextPath}/topic?method=list&c_id=${category.id}">${category.name}</a>
        </li>
        </c:forEach>
    </ul>
</div>
<div>
    <form class="form-horizontal" role="form" action="${pageContext.request.contextPath}/user?method=register" method="post" style="margin-top: 50px">
    <div class="form-group">
        <label for="inputphone" class="col-sm-2 control-label">手机号</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputphone" name="phone" placeholder="手机号">
        </div>
    </div>
    <div class="form-group">
        <label for="inputusername" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
             <input type="text" class="form-control" id="inputusername" name="username" placeholder="用户名">
        </div>
    </div>
    <div class="form-group">
        <label for="inputpwd" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="inputpwd" name="pwd" placeholder="密码">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-2 control-label">男</label>
        <div class="col-lg-3">
            <input type="radio"   name="sex" value="1" checked >
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-2 control-label">女</label>
        <div class="col-lg-3">
            <input type="radio"  name="sex" value="2"  >
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">注册</button>
        </div>
    </div>
    </form>
</div>

</body>
</html>
